package com.telenav.app;

import com.telenav.module.entry.EntryController;

public final class TeleNavDelegate {
	
	protected static TeleNavDelegate instance = new TeleNavDelegate();
	protected IApplication application;
	
    private TeleNavDelegate()
    {
        
    }
    
    public static TeleNavDelegate getInstance()
    {
        return instance;
    }
    
    public final void startApp(String[] args, IApplication application)
    {
    	this.application = application;
    	
        EntryController entryController = new EntryController(null);
        entryController.init();
    }
    
    public final void exitApp()
    {
    	application.exit(null, null);
    }

}
